Goto

Collaborating Authors

 exploring ros2


Exploring ROS2 with a wheeled robot – #4 – Obstacle avoidance

Robohub

In this post you'll learn how to program a robot to avoid obstacles using ROS2 and C . Before anything else, make sure you have the rosject from the previous post, you can copy it from here. Launch the simulation in one webshell and in a different tab, checkout the topics we have available. The obstacle avoidance intelligence goes inside the method calculateVelMsg. This is where decisions are made based on the laser readings.


Exploring ROS2 using wheeled Robot – #3 – Moving the robot

Robohub

In this post you'll learn how to publish to a ROS2 topic using ROS2 C . Up to the end of the video, we are moving the robot Dolly robot, simulated using Gazebo 11. Before anything else, make sure you have the rosject from the previous post, you can copy it from here. Launch the simulation in one webshell and in a different tab, checkout the topics we have available. Create a new file to container the publisher node: moving_robot.cpp


Exploring ROS2 with wheeled robot – #2 – How to subscribe to ROS2 laser scan topic

Robohub

This is the second chapter of the series "Exploring ROS2 with a wheeled robot". In this episode, you'll learn how to subscribe to a ROS2 topic using ROS2 C . Before anything else, make sure you have the rosject from the previous post, you can copy it from here. Launch the simulation in one webshell and in a different tab, checkout the topics we have available. Our goal is to read the laser data, so create a new file called reading_laser.cpp:


Exploring ROS2 with wheeled robot – #1 – Launch ROS2 Simulation

Robohub

This is the 1st chapter of the series "Exploring ROS2 with a wheeled robot". From cloning, compiling and creating a package launch file to start the simulation! In this series we are using ROS2 foxy, go to this page, create a new rosject selecting ROS2 Foxy distro and and run it. The first step is to clone the dolly robot package. Open a web shell and execute the following: cd /ros2_ws/src/ git clone https://github.com/chapulina/dolly.git Notice we are ignoring the ignition related package, that's because we will work only with gazebo simulator.